package net.lookyou.boot.demo.exception;

import org.springframework.security.core.AuthenticationException;

/**
 *  <p> 自定义异常类 </p>
 *
 * @description :
 * @author : zhengqing
 * @date : 2019/8/26 15:11
 */
public class CustomerAuthenticationException extends AuthenticationException {

    private int code = 200;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public CustomerAuthenticationException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public CustomerAuthenticationException(int code, String msg) {
        super(msg, null);
        this.code = code;
    }
}
